import http from '@/utils/http'

export async function getTyphoonInfo(typhoonId: string) {
  return await http.get<TyphoonData[]>(`/api/${typhoonId}.json`)
}

export async function getYearList() {
  return await http.get<Year[]>('/api/years.json')
}

export async function getTyphoonList(year: string) {
  return await http.get<TyphoonYearInfo[]>(`/api/${year}.json`)
}
